<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    body{
      margin:0;
    }
  .box{
height:489px;
background-color: #f00;

background:url(./image/mhxy.jpg);
background-position: center;
  /* 使图片保持在中间，不会随着浏览器的缩小而缩小 */

  }
  </style>
</head>
<body>
  <div class="box"></div>
</body>
</html>